package com.web.bigdata.repostory;

import com.web.bigdata.pojo.ArticleTopnView;
import com.web.bigdata.pojo.BigdataArticleTopn;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

//import java.util.List;
//
//public interface ArticleTopNRepository extends JpaRepository<BigdataArticleTopn, Long> {
//
//  @Query(value = "SELECT new com.web.bigdata.pojo.ArticleTopnView(id,articleTitle,weight,time) FROM article a, bigdata_article_topn b WHERE a.id=b.articleId and time = ?1")
//  public List<ArticleTopnView> findViewInfo(@Param("time") String time);
//
//}
